<script setup lang="ts" name="artContent">
import ArtText from '@/components/index/artical/artText.vue'
import ArtImg from '@/components/index/artical/artImg.vue'

defineProps<{
  content: { name: string; content: string }[]
}>()
</script>

<template>
  <div>
    <component
      v-for="(type, index) in content"
      :key="index"
      :data="type"
      :is="type.name.startsWith('contentText') ? ArtText : ArtImg"
    ></component>
  </div>
</template>

<style scoped></style>
